#pragma once
#include <string>
#include <map>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>

#include <vector>
//#include "Device.h"


class Parser
{
private: 
	std::ifstream _dataFile;
	std::string _line;
	
	double _stopTime;
	int _currentRound;
	int _currentFile;
	int _maxTime;
	int hexaToInt(std::string shex);
	int _filesTime;
	
	

public:
	Parser();
	virtual ~Parser(void);

	bool readIOs();
//	bool readPlacements(std::map <std::string, std::pair<Device*, std::vector<int>*>>* placements);
//	bool readPlacements(std::map <std::string , std::pair<Device*, std::vector<int>*>>* placements, std::map <std::string, std::string>* newPlacements);
//	void readPriorityGroups();

	std::vector <std::string> split (std::string str, char delimiter);
};

